-
Notifications
You must be signed in to change notification settings - Fork 321
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Azure Cosmos DB for MongoDB extension #329
Azure Cosmos DB for MongoDB extension #329
Conversation
extensions/AzureCosmosDBMongoVCore/AzureCosmosDBMongoVCore/AzureCosmosDBMongoVCoreConfig.cs
Outdated
Show resolved
Hide resolved
extensions/AzureCosmosDBMongoVCore/AzureCosmosDBMongoVCore/AzureCosmosDBMongoVCoreConfig.cs
Outdated
Show resolved
Hide resolved
extensions/AzureCosmosDBMongoVCore/AzureCosmosDBMongoVCore/AzureCosmosDBMongoVCoreConfig.cs
Outdated
Show resolved
Hide resolved
extensions/AzureCosmosDBMongoVCore/AzureCosmosDBMongoVCore/AzureCosmosDBMongoVCoreConfig.cs
Outdated
Show resolved
Hide resolved
extensions/AzureCosmosDBMongoVCore/AzureCosmosDBMongoVCore/AzureCosmosDBMongoVCoreConfig.cs
Outdated
Show resolved
Hide resolved
extensions/AzureCosmosDBMongoVCore/AzureCosmosDBMongoVCore/AzureCosmosDBMongoVCoreConfig.cs
Outdated
Show resolved
Hide resolved
extensions/AzureCosmosDBMongoVCore/AzureCosmosDBMongoVCore/AzureCosmosDBMongoVCoreConfig.cs
Outdated
Show resolved
Hide resolved
extensions/AzureCosmosDBMongoVCore/AzureCosmosDBMongoVCore/AzureCosmosDBMongoVCoreMemory.cs
Outdated
Show resolved
Hide resolved
extensions/AzureCosmosDBMongoVCore/AzureCosmosDBMongoVCore.FunctionalTests/appsettings.json
Outdated
Show resolved
Hide resolved
extensions/AzureCosmosDBMongoVCore/AzureCosmosDBMongoVCore/AzureCosmosDBMongoVCoreMemory.cs
Outdated
Show resolved
Hide resolved
68c95e6
to
31fad13
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add the new projects to the solution file. I see a lot of build warnings and errors due to code style, could you take a look?
extensions/AzureCosmosDBMongoVCore/AzureCosmosDBMongoVCore.TestApplication/appsettings.json
Outdated
Show resolved
Hide resolved
extensions/AzureCosmosDBMongoVCore/AzureCosmosDBMongoVCore/AzureCosmosDBMongoVCore.csproj
Outdated
Show resolved
Hide resolved
extensions/AzureCosmosDBMongoVCore/AzureCosmosDBMongoVCore/AzureCosmosDBMongoVCore.csproj
Outdated
Show resolved
Hide resolved
extensions/AzureCosmosDBMongoVCore/AzureCosmosDBMongoVCore/AzureCosmosDBMongoVCore.csproj
Outdated
Show resolved
Hide resolved
extensions/AzureCosmosDBMongoVCore/AzureCosmosDBMongoVCore/AzureCosmosDBMongoVCoreConfig.cs
Outdated
Show resolved
Hide resolved
extensions/AzureCosmosDBMongoVCore/AzureCosmosDBMongoVCore/AzureCosmosDBMongoVCoreConfig.cs
Outdated
Show resolved
Hide resolved
@dluc I have added the projects to the Solution file, and renamed the AzureCosmosDBMongoDBVCore to AzureCosmosDBMongoDB as decided by the team for the external connectors/integrations. |
3fa2e2b
to
1f6a2cd
Compare
I fixed some compilation errors, but there are still several warnings to address:
I'm also getting a compilation error:
|
Could you please also squash the commits into a single commit? that will make it easier to manage the PR while other PRs get merged. Thanks! |
extensions/AzureCosmosDBMongoDB/AzureCosmosDBMongoDB/AzureCosmosDBVectorSearchType.cs
Outdated
Show resolved
Hide resolved
extensions/AzureCosmosDBMongoDB/AzureCosmosDBMongoDB/AzureCosmosDBSimilarityType.cs
Outdated
Show resolved
Hide resolved
extensions/AzureCosmosDBMongoDB/AzureCosmosDBMongoDB.TestApplication/appsettings.json
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Build issues to be addressed before testing - thanks
Changes for Azure CosmosDB Mongo vCore Adding some comments Formatting Formatting Resovling comments Resovling comments Resolving comments Adding changes for Azure cosmos mongo vcore memory store Changes for Azure CosmosDB Mongo vCore Adding some comments Formatting Formatting Resovling comments Resovling comments Resolving comments Misc fixes Formatting changes Fixing build warning Fixing build warning
ad2002c
to
e95cfc3
Compare
@dluc I have addressed all your comments, the build should also be passing now. Let me know if something else is required from my side. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fantastic effort, thanks for following through
6806903
to
ee5d060
Compare
extensions/AzureCosmosDBMongoDB/AzureCosmosDBMongoDB/AzureCosmosDBSimilarityType.cs
Outdated
Show resolved
Hide resolved
extensions/AzureCosmosDBMongoDB/AzureCosmosDBMongoDB/AzureCosmosDBSimilarityType.cs
Outdated
Show resolved
Hide resolved
extensions/AzureCosmosDBMongoDB/AzureCosmosDBMongoDB/AzureCosmosDBSimilarityType.cs
Outdated
Show resolved
Hide resolved
extensions/AzureCosmosDBMongoDB/AzureCosmosDBMongoDB/AzureCosmosDBVectorSearchType.cs
Show resolved
Hide resolved
extensions/AzureCosmosDBMongoDB/AzureCosmosDBMongoDB/AzureCosmosDBVectorSearchType.cs
Outdated
Show resolved
Hide resolved
extensions/AzureCosmosDBMongoDB/AzureCosmosDBMongoDB.FunctionalTests/appsettings.json
Outdated
Show resolved
Hide resolved
extensions/AzureCosmosDBMongoDB/AzureCosmosDBMongoDB/AzureCosmosDBMongoDB.csproj
Outdated
Show resolved
Hide resolved
extensions/AzureCosmosDBMongoDB/AzureCosmosDBMongoDB/AzureCosmosDBMongoDBMemory.cs
Show resolved
Hide resolved
Adding changes for Azure cosmos mongo vcore memory store Changes for Azure CosmosDB Mongo vCore Adding some comments Formatting Formatting Resovling comments Resovling comments Resolving comments Adding changes for Azure cosmos mongo vcore memory store Changes for Azure CosmosDB Mongo vCore Adding some comments Formatting Formatting Resovling comments Resovling comments Resolving comments Misc fixes Formatting changes Fixing build warning Fixing build warning
ee5d060
to
ccced1d
Compare
extensions/AzureCosmosDBMongoDB/AzureCosmosDBMongoDB/AzureCosmosDBEnums.cs
Outdated
Show resolved
Hide resolved
extensions/AzureCosmosDBMongoDB/AzureCosmosDBMongoDB/AzureCosmosDBMongoDBMemory.cs
Show resolved
Hide resolved
extensions/AzureCosmosDBMongoDB/AzureCosmosDBMongoDB/AzureCosmosDBMongoDBMemory.cs
Outdated
Show resolved
Hide resolved
extensions/AzureCosmosDBMongoDB/AzureCosmosDBMongoDB/AzureCosmosDBMongoDBMemory.cs
Show resolved
Hide resolved
|
||
namespace AzureCosmosDBMongoDB.FunctionalTests; | ||
|
||
public class DefaultTests : BaseFunctionalTestCase |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please run the tests and make sure they are all passing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the mongo vCore implementation you cannot have indexes with same properties and different names. The test cases in this class create multiple indexes with just different names but same index properties, and they will always fail in our case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what's stopping from having multiple indexes with the same schema?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Major things to be addressed:
- Functional tests should pass
- Filtering should be implemented
- Remove Newtonsoft dependency
@aayush3011 how is it going with functional tests and filters? Did you consider reusing the logic from the MongoDbAtlas connector? |
Looks like the PR got stale, closing it for now. We can reopen it if someone can complete the connector and address the issues identified. |
@dluc I have resolved most of the comments, please take another look at the PR once you get a chance. |
@dluc any updates on this? |
Closing for now. We'll reconsider once the new SK connector is ready. |
Motivation and Context (Why the change? What's the scenario?)
I have added Azure Cosmos DB Mongo vCore as Memory to be used by customers using Kernel Memory and Cosmos DB for their LLM applications.
https://learn.microsoft.com/en-us/azure/cosmos-db/mongodb/vcore/vector-search